/**
    服务管理 组件
**/
(function (vc) {

    vc.extends({
        propTypes: {
            callBackListener: vc.propTypes.string, //父组件名称
            callBackFunction: vc.propTypes.string //父组件监听方法
        },
        data: {
            viewHousekeepingServInfo: {
                index: 0,
                flowComponent: 'viewHousekeepingServInfo',
                servId: '',
                servName: '',
                servDesc: '',
                hktId: '',
                sales: '',
                sort: '',
                state: '',

            }
        },
        _initMethod: function () {
            //根据请求参数查询 查询 业主信息
            $that._loadHousekeepingServInfoData();
        },
        _initEvent: function () {
            vc.on('viewHousekeepingServInfo', 'chooseHousekeepingServ', function (_app) {
                vc.copyObject(_app, $that.viewHousekeepingServInfo);
                vc.emit($props.callBackListener, $props.callBackFunction, $that.viewHousekeepingServInfo);
            });

            vc.on('viewHousekeepingServInfo', 'onIndex', function (_index) {
                $that.viewHousekeepingServInfo.index = _index;
            });

        },
        methods: {

            _openSelectHousekeepingServInfoModel() {
                vc.emit('chooseHousekeepingServ', 'openChooseHousekeepingServModel', {});
            },
            _openAddHousekeepingServInfoModel() {
                vc.emit('addHousekeepingServ', 'openAddHousekeepingServModal', {});
            },
            _loadHousekeepingServInfoData: function () {

            }
        }
    });

})(window.vc);
